<?php
return [
    'SERVER_NAME' => "EasySwoole",
    'MAIN_SERVER' => [
        'LISTEN_ADDRESS' => '0.0.0.0',
        'PORT' => 8086,
        'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER  EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER,EASYSWOOLE_REDIS_SERVER
        'SOCK_TYPE' => SWOOLE_TCP,
        'RUN_MODEL' => SWOOLE_PROCESS,
        'SETTING' => [
            'worker_num' => 1,
            'reload_async' => true,
            'max_wait_time'=>3
        ],
        'TASK'=>[
            'workerNum'=>1,
            'maxRunningNum'=>128,
            'timeout'=>15
        ]
    ],
    'TEMP_DIR' => null,
    'LOG_DIR' => null,


    /*################ Personal CONFIG ##################*/
    //队列组件使用的配置
    'queue' => [
        //redis
        'redis' => [
            'host'          => '127.0.0.1',
            'port'          => '6379',
        ],
        //队列名
        'queuekey'      => 'jyqueue',
        //签名key
        'signkey' => 'c015290e90c25746',
        //协程相关
        //无消息时进入睡眠的时间，协程大于maxCurrency时进入睡眠的时间
        'breakTime' => 0.01,
        'waitTime' => 0.1,
        //最大协程数
        'maxCurrency' => 128,
    ]

    
];
